package com.vortex.cloud.zhsw.xinyang.annotation;

import com.vortex.cloud.zhsw.xinyang.enums.IBaseEnum;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @author huan
 * @date 2024年03月27日 16:27
 */
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.PARAMETER, ElementType.TYPE_USE})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = {StatusValueValidator.class})
@Documented
public @interface StatusValue {

    String message() default "入参验证不通过";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

    Class<? extends IBaseEnum> baseEnum() default IBaseEnum.class;

}
